#include <iostream>
#include <vector>
#include <cstring>
#include <cstdio>

using namespace std;

class Board{
    bool checkWon(vector<vector<int>> board){
        for (int i = 0; i < 3; ++i) {
            if (board[i][0] + board[i][1] + board[i][2] == 3 ||
                board[0][i] + board[1][i] + board[2][i] == 3)
                return true;
        }
        if (board[0][0] + board[1][1] + board[2][2] == 3 ||
            board[0][2] + board[1][1] + board[2][0] == 3)
            return true;
        return false;
    }

public:
    void Test1(){
        vector<vector<int>> tmp;
        tmp = {{1,0,1},{1,-1,-1},{1,-1,0}};
/*        for (int i = 0; i < 3; ++i) {
            for (int j = 0; j < 3; ++j) {
                cin >> tmp[i][j];
            }
        }*/
        cout << Board().checkWon(tmp);
    }
};

void Test2(){
    int len = 0, capital = 0, lower_letter = 0, digital = 0, others = 0;
    char str[310] = {'\0'};
    int grade = 0;
    scanf("%s",str);
        len = strlen(str);
        for (int i = 0; i < len; ++i) {
            if (str[i] >= 'A' && str[i] <= 'Z')
                capital = 1;
            else if (str[i] >= 'a' && str[i] <= 'z')
                lower_letter = 1;
            else if (str[i] >= '0' && str[i] <= '9')
                ++digital;
            else
                ++others;
        }

        //长度
        if (len <= 4)
            grade += 5;
        else if (len >= 5 && len <= 7)
            grade += 10;
        else
            grade += 25;

        //字母
        if (capital + lower_letter == 0)
            grade += 0;
        else if (capital + lower_letter == 1)
            grade += 10;
        else
            grade += 20;

        //数字
        if (digital == 0)
            grade += 0;
        else if (digital == 1)
            grade += 10;
        else
            grade += 20;

        //符号
        if (others == 0)
            grade += 0;
        else if (others == 1)
            grade += 10;
        else
            grade += 25;

        if (capital + lower_letter == 2 && digital >= 1 && others >= 1)
            grade += 5;
        else if (capital + lower_letter == 1 && digital >= 1 && others >= 1)
            grade += 3;
        else if (capital + lower_letter == 1 && digital >= 1)
            grade += 2;

        if (grade >= 90)
            printf("VERY_SECURE\n");
        else if (grade >= 80)
            printf("SECURE\n");
        else if (grade >= 70)
            printf("VERY_STRONG\n");
        else if (grade >= 60)
            printf("STRONG\n");
        else if (grade >= 50)
            printf("AVERAGE\n");
        else if (grade >= 25)
            printf("WEAK\n");
        else
            printf("VERY_WEAK\n");
    }

int main() {
    //Board().Test1();
    Test2();
    return 0;
}
